package com.controller.seedoctor;

import com.comm.R;
import io.swagger.annotations.*;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/seeDoctor/visitsList")
@Api(value = "就诊列表所有操作功能",tags = "就诊列表的所有操作功能API接口")
@ApiResponses({
        @ApiResponse(code=200,message="请求成功"),
        @ApiResponse(code=404,message="找不到页面"),
        @ApiResponse(code=405,message="请求方法错误"),
        @ApiResponse(code=500,message="后台服务错误")
})
public class VisitsListController {


    @ApiOperation(value = "新开就诊下的查看未就诊接口",notes = "查看未就诊列表",httpMethod = "get",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bankName",value = "患者姓名",paramType = "query",dataType = "String",required = false),
            @ApiImplicitParam(name = "registeredTime",value = "挂号日期范围",paramType = "query",dataType = "String",required = false)
    })
    @ResponseBody
    @RequestMapping(value = "/selectRegListByNameAndDateRange",method = RequestMethod.GET)
    public String selectRegListByNameAndDateRange(String bankName,String registeredTime){

        return "{ \"code\": 200, \"msg\": \"查询成功！\", \"data\":\n" +
                "[{\n" +
                "\t\t\"id\": 32412421343,\n" +
                "\t\t\"registeredTime\": \"2023-02-16 10:13:47\",\n" +
                "\t\t\"registeredType\": \"急诊\",\n" +
                "\t\t\"bankName\": \"张三\",\n" +
                "\t\t\"sex\": \"男\",\n" +
                "\t\t\"age\": 22,\n" +
                "\t\t\"phone\": \"18237277717\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"id\": 32412421343,\n" +
                "\t\t\"registeredTime\": \"2023-02-16 10:13:47\",\n" +
                "\t\t\"registeredType\": \"急诊\",\n" +
                "\t\t\"bankName\": \"张三\",\n" +
                "\t\t\"sex\": \"男\",\n" +
                "\t\t\"age\": 22,\n" +
                "\t\t\"phone\": \"18237277717\"\n" +
                "\t}\n" +
                "]\n" +
                "}\n";
    }


    @ApiOperation(value = "新开就诊下的查看已就诊接口",notes = "查看已就诊列表",httpMethod = "get",response = R.class)
    @ApiImplicitParams({
            @ApiImplicitParam(name = "bankName",value = "患者姓名",paramType = "query",dataType = "String",required = false),
            @ApiImplicitParam(name = "seeDoctorTime",value = "就诊日期范围",paramType = "query",dataType = "String",required = false)
    })
    @ResponseBody
    @RequestMapping(value = "/selectSeeDoctorListByNameAndDateRange",method = RequestMethod.GET)
    public String selectSeeDoctorListByNameAndDateRange(String bankName,String registeredTime){
        return "{ \"code\": 200, \"msg\": \"查询成功！\", \"data\": \n" +
                "[{\n" +
                "\t\t\"id\": 32412421343,\n" +
                "\t\t\"seeDoctorTime\": \"2023-02-16 10:13:47\",\n" +
                "\t\t\"statuse\": \"未支付\",\n" +
                "\t\t\"bankName\": \"张三\",\n" +
                "\t\t\"sex\": \"男\",\n" +
                "\t\t\"age\": 22,\n" +
                "\t\t\"phone\": \"18237277717\"\n" +
                "\t},\n" +
                "\t{\n" +
                "\t\t\"id\": 32412421343,\n" +
                "\t\t\"seeDoctorTime\": \"2023-02-16 10:13:47\",\n" +
                "\t\t\"statuse\": \"未支付\",\n" +
                "\t\t\"bankName\": \"张三\",\n" +
                "\t\t\"sex\": \"男\",\n" +
                "\t\t\"age\": 22,\n" +
                "\t\t\"phone\": \"18237277717\"\n" +
                "\t}\n" +
                "]\n" +
                "}\n";
    }
}
